<?php
class HomeAction{
	public function home(){
		$hd = "h1 document";
		$title = isset($_GET['title']) ? '1' : '0';
		require getTemplates();
	}

	public function add(){
		header('content-type:text/html;charset=utf-8');
		$user = D();
		$data = $user->table('info')->data(array('name'=>'tutu','age'=>45,'sex'=>9))->add();
		echo $user->getlastsql();
		var_dump($data);
		die;
		$title = 'The add action title';
		require getTemplates();
	}
	
}